﻿/*
 * Created by SharpDevelop.
 * User: hugo
 * Date: 2012/8/27
 * Time: 下午 11:22
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using MyPetShop.Domain;
using FluentNHibernate.Mapping;

namespace MyPetShop.Domain.Mapping
{
	/// <summary>
	/// Description of ProductMap.
	/// </summary>
	public class ProductMap : ClassMap<Product>
	{
		public ProductMap()
		{
			Table("Product");
            Id(x => x.ProductId).Column("ProductId")
                .GeneratedBy.Identity();
            Map(x => x.Description);
            Map(x => x.Name);
		}
	}
}
